/*
 * Created on 2005-8-2
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
//package com.asiainfo.ysrman.doprocess;      
package com.asiainfo.ysrman.doprocess;         

import java.sql.Connection;
import javax.sql.DataSource;

import com.asiainfo.ysrman.DAO.OracleConnectPoll;


/**
 * @
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */



public class DOProcess {

	public DOProcess() {
	} // constructor() end
	

	public Connection getPoolConnection() {
		try {

			OracleConnectPoll ocp = OracleConnectPoll.getInstance();
			DataSource ds = ocp.getDBDateSource();
			return ds.getConnection();

		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}// class end
